home *** CD-ROM | disk | FTP | other *** search
- gStrInputEncoding = '$$$/Dialogs/HTML2PDF/ConfigSettings/Font/InputEncoding';
- gStrDefault = '$$$/Dialogs/HTML2PDF/ConfigSettings/Font/Default';
- gStrFontSettings = '$$$/Dialogs/HTML2PDF/ConfigSettings/Font/FontSettings';
- gStrLanguageScript = '$$$/Dialogs/HTML2PDF/ConfigSettings/Font/LanguageScript';
- gStrChange = '$$$/Dialogs/HTML2PDF/ConfigSettings/Font/Change';
- gStrBodyText = '$$$/Dialogs/HTML2PDF/HTMLSettings/Font/BodyText';
- gStrHeadings = '$$$/Dialogs/HTML2PDF/HTMLSettings/Font/Headings';
- gStrPreFormatted = '$$$/Dialogs/HTML2PDF/HTMLSettings/Font/PreFormatted';
- gStrBaseFontSize = '$$$/Dialogs/HTML2PDF/HTMLSettings/Font/BaseFontSize';
- gStrFontEmbedding = '$$$/Dialogs/HTML2PDF/ConfigSettings/Font/FontEmbedding';
- gStrFontSize = '$$$/Dialogs/HTML2PDF/ConfigSettings/Font/FontSize';
- gStrEmbedFonts = '$$$/Dialogs/HTML2PDF/ConfigSettings/Font/EmbedFonts';
- gStrNoSelection = '$$$/Dialogs/HTML2PDF/ConfigSettings/Font/NoSelection';
-
- gIndentWidth = gGap;
-
- gChangeButtonWidth = gGap + zstring_width( zstring: gStrChange ) + gGap;
-
- gSpaceBetweenPopupAndButton = gMarginWidth + (gGap * 2);
-
- gLangaugeScriptPopupWidth =
- max ( zstring_width( zstring: '$$$IDS_LANG_SCRIPT_WESTERN' )
- , zstring_width( zstring: '$$$IDS_LANG_SCRIPT_JAPANESE' )
- , zstring_width( zstring: '$$$IDS_LANG_SCRIPT_CHINESE_TRAD' )
- , zstring_width( zstring: '$$$IDS_LANG_SCRIPT_CHINESE_SIMP' )
- , zstring_width( zstring: '$$$IDS_LANG_SCRIPT_KOREAN' )
- );
-
- gDefaultEncodingPopupWidth =
- max ( zstring_width( zstring: '$$$IDS_ENCODING_WESTERN' )
- , zstring_width( zstring: '$$$IDS_ENCODING_AUTO_JAPANESE' )
- , zstring_width( zstring: '$$$IDS_ENCODING_AUTO_CHINESE_TRAD' )
- , zstring_width( zstring: '$$$IDS_ENCODING_AUTO_CHINESE_SIMP' )
- , zstring_width( zstring: '$$$IDS_ENCODING_AUTO_KOREAN' )
- , zstring_width( zstring: '$$$IDS_ENCODING_EUCJP' )
- , zstring_width( zstring: '$$$IDS_ENCODING_SHIFTJIS' )
- , zstring_width( zstring: '$$$IDS_ENCODING_JIS' )
- , zstring_width( zstring: '$$$IDS_ENCODING_EUCCN' )
- , zstring_width( zstring: '$$$IDS_ENCODING_GBK' )
- , zstring_width( zstring: '$$$IDS_ENCODING_EUCTW' )
- , zstring_width( zstring: '$$$IDS_ENCODING_BIG5' )
- , zstring_width( zstring: '$$$IDS_ENCODING_EUCKR' )
- , zstring_width( zstring: '$$$IDS_ENCODING_ISO2022KR' )
- , zstring_width( zstring: '$$$IDS_ENCODING_JOHAB' )
- , ( gLangaugeScriptPopupWidth + gSpaceBetweenPopupAndButton + gChangeButtonWidth )
- );
-
- gLangaugeScriptPopupWidth = gDefaultEncodingPopupWidth
- - gSpaceBetweenPopupAndButton
- - gChangeButtonWidth;
-
- gFontSettingsTextWidth =
- max ( zstring_width( zstring: gStrLanguageScript )
- , zstring_width( zstring: gStrDefault )
- , ( zstring_width( zstring: gStrBodyText ) + gIndentWidth )
- , ( zstring_width( zstring: gStrHeadings ) + gIndentWidth )
- , ( zstring_width( zstring: gStrPreFormatted ) + gIndentWidth )
- ) + max_char_width();
-
- gFaceNameEditWidth = gDefaultEncodingPopupWidth + gMarginWidth + (gGap * 2);
-
- gFontSizeWidth = max_char_width() * 3;
-
-
- dialog( )
- {
- view( align_children: align_left )
- {
- cluster( name: gStrInputEncoding )
- {
- view( align_children: align_row )
- {
- view( align_children: align_row )
- {
- view( align_children: align_left, width: gFontSettingsTextWidth )
- {
- static_text( item_id: 'st01', name: gStrDefault, next_tab: 'inec' );
- }
- view( align_children: align_right )
- {
- popup( item_id: 'inec', width: gDefaultEncodingPopupWidth, next_tab: 'st02' );
- }
- }
- }
- }
- cluster( name: gStrFontSettings )
- {
- view( align_children: align_row )
- {
- view( align_children: align_left, width: gFontSettingsTextWidth )
- {
- static_text( item_id:'st02', name: gStrLanguageScript, next_tab: 'lngs' );
- }
- view( align_children: align_left )
- {
- popup( item_id: 'lngs', width: gLangaugeScriptPopupWidth, next_tab: 'chag' );
- }
- view( alignment: align_fill, align_children: align_right )
- {
- button( item_id: 'chag', name: gStrChange, next_tab: 'st03' );
- }
- }
- view( align_children: align_row )
- {
- view( align_children: align_row, width: gFontSettingsTextWidth )
- {
- gap( width: gIndentWidth );
- static_text( item_id: 'st03', name: gStrBodyText, next_tab: 'btfn' );
- }
- view( align_children: align_left )
- {
- edit_text( item_id: 'btfn', readonly: true, width: gFaceNameEditWidth, next_tab: 'st04' );
- }
- }
- view( align_children: align_row )
- {
- view( align_children: align_row, width: gFontSettingsTextWidth )
- {
- gap( width: gIndentWidth );
- static_text( item_id: 'st04', name: gStrHeadings, next_tab: 'hdfn' );
- }
- view( align_children: align_left )
- {
- edit_text( item_id: 'hdfn', readonly: true, width: gFaceNameEditWidth, next_tab: 'st05' );
- }
- }
- view( align_children: align_row )
- {
- view( align_children: align_row, width: gFontSettingsTextWidth )
- {
- gap( width: gIndentWidth );
- static_text( item_id: 'st05', name: gStrPreFormatted, next_tab: 'pffn' );
- }
- view( align_children: align_left )
- {
- edit_text( item_id: 'pffn', readonly: true, width: gFaceNameEditWidth, next_tab: 'st06' );
- }
- }
- }
- cluster( name: gStrFontSize )
- {
- view( align_children: align_row )
- {
- view( align_children: align_row, width: gFontSettingsTextWidth )
- {
- static_text( item_id: 'st06', name: gStrBaseFontSize, next_tab: 'btps' );
- }
- view( align_children: align_left, width: gFaceNameEditWidth )
- {
- edit_text( item_id: 'btps', PopupEdit: true, numeric: true, width: gFontSizeWidth, next_tab: 'embp' );
- }
- }
- }
- cluster( name: gStrFontEmbedding )
- {
- view( align_children: align_row )
- {
- check_box(item_id: 'embp', name: gStrEmbedFonts );
- }
- }
- }
- }